package io.peng.j2se.lab;

/**
 * Created by eric on 16/3/15.
 */
public class Main {
    public static void main(String[] args) {
        MySingleton.getInstance().setBalance(9);
        new Thread(new Producer()).start();
        new Thread(new Consumer()).start();
//        System.out.println(MySingleton.getInstance().getBalance());
    }
}
